package com.ruoyi.inventory.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 药品库存对象 inventory
 * 
 * @author wyj
 * @date 2025-02-25
 */
public class Inventory extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 批次ID */
    @Excel(name = "批次ID")
    private Long inventoryId;

    /** 药品ID */
    @Excel(name = "药品ID")
    private Long drugId;

    /** 库存数量 */
    @Excel(name = "库存数量")
    private Long stockQuantity;

    /** 存放位置 */
    @Excel(name = "存放位置")
    private String location;

    /** 生产批号 */
    @Excel(name = "生产批号")
    private String batchNumber;

    /** 生产日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "生产日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date productionDate;

    /** 有效期至 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "有效期至", width = 30, dateFormat = "yyyy-MM-dd")
    private Date expiryDate;

    /** 供应商ID */
    @Excel(name = "供应商ID")
    private String supplier;

    /** 最后盘点时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最后盘点时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lastCheck;

    /** 药品名称 */
    @Excel(name = "药品名称")
    private String drugName;



    public void setInventoryId(Long inventoryId) 
    {
        this.inventoryId = inventoryId;
    }

    public Long getInventoryId() 
    {
        return inventoryId;
    }
    public void setDrugId(Long drugId) 
    {
        this.drugId = drugId;
    }

    public Long getDrugId() 
    {
        return drugId;
    }
    public void setStockQuantity(Long stockQuantity) 
    {
        this.stockQuantity = stockQuantity;
    }

    public Long getStockQuantity() 
    {
        return stockQuantity;
    }
    public void setLocation(String location) 
    {
        this.location = location;
    }

    public String getLocation() 
    {
        return location;
    }
    public void setBatchNumber(String batchNumber) 
    {
        this.batchNumber = batchNumber;
    }

    public String getBatchNumber() 
    {
        return batchNumber;
    }
    public void setProductionDate(Date productionDate) 
    {
        this.productionDate = productionDate;
    }

    public Date getProductionDate() 
    {
        return productionDate;
    }
    public void setExpiryDate(Date expiryDate) 
    {
        this.expiryDate = expiryDate;
    }

    public Date getExpiryDate() 
    {
        return expiryDate;
    }
    public void setSupplier(String supplier) 
    {
        this.supplier = supplier;
    }

    public String getSupplier() 
    {
        return supplier;
    }
    public void setLastCheck(Date lastCheck) 
    {
        this.lastCheck = lastCheck;
    }

    public Date getLastCheck() 
    {
        return lastCheck;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("inventoryId", getInventoryId())
            .append("drugId", getDrugId())
            .append("drugName", getDrugName())
            .append("stockQuantity", getStockQuantity())
            .append("location", getLocation())
            .append("batchNumber", getBatchNumber())
            .append("productionDate", getProductionDate())
            .append("expiryDate", getExpiryDate())
            .append("supplier", getSupplier())
            .append("lastCheck", getLastCheck())
            .toString();
    }

    public String getDrugName() {
        return drugName;
    }

    public void setDrugName(String drugName) {
        this.drugName = drugName;
    }
}
